<template>
  <div class="login-container">
    <!-- 头部 -->
    <van-nav-bar :title="name" fixed>
      <template #left>
        <!-- 后退按钮 -->
        <van-icon
          name="arrow-left"
          color="white"
          size="0.48rem"
          class="goback"
          @click="$router.back()"
      /></template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    name: String,
  },
};
</script>
<style lang="less" scoped></style>
